/********************************************************************************
 *      Copyright:  (C) 2024 dengleen
 *                  All rights reserved.
 *
 *       Filename:  led.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(08/05/24)
 *         Author:  dengleen <dengleen@outlook.com>
 *      ChangeLog:  1, Release initial version on "08/05/24 15:02:28"
 *                 
 ********************************************************************************/
#ifndef __LED_H__
#define __LED_H__

#define BLINK_T 1

enum
{
	LED_R,
	LED_G,
	LED_B,
	LED_MAX,
};

enum
{
	OFF=0,
	ON,
};


typedef struct led_gpio_s
{
	int                 idx;
	int                 gpio;
	const char         *desc;
	struct gpiod_line  *line;
}led_gpio_t;


int led_init();
void turn_led(int which, int status);
void blink_led(int which);
int led_release();
#endif

